<script>
var i=window.parent.layer_iframe_index;
window.parent.document.getElementById("layui-layer"+i).style.display="none";
window.parent.document.getElementById("layui-layer-shade"+i).style.display="none";
window.parent.layer.msg('{$msg}', {
    icon: 1,
    time: 2000 //2秒关闭（如果不配置，默认是3秒）
},function(){
   window.parent.location.reload();
})
</script>